package cn.wolfcode.car.business.service;

import cn.wolfcode.car.business.domain.GoodsCategory;
import cn.wolfcode.car.business.query.GoodsCategoryQuery;
import cn.wolfcode.car.common.base.page.TablePageInfo;
import cn.wolfcode.car.common.json.ZTreeJson;

import java.util.List;

/**
 * 客户预约接口
 */
public interface IGoodsCategoryService {

    /**
     * 分页
     * @param qo
     * @return
     */
    TablePageInfo<GoodsCategory> query(GoodsCategoryQuery qo);


    /**
     * 查单个
     * @param id
     * @return
     */
    GoodsCategory get(Long id);


    /**
     * 保存
     * @param goodsCategory
     */
    void save(GoodsCategory goodsCategory);

  
    /**
     * 更新
     * @param goodsCategory
     */
    void update(GoodsCategory goodsCategory);

    /**
     *  批量删除
     * @param ids
     */
    void deleteBatch(String ids);

    /**
     * 查询全部
     * @return
     */
    List<GoodsCategory> list();


    List<GoodsCategory> selectParent();

    /**
     * 查询节点
     */
    List<ZTreeJson> selectZTree();
}
